package com.demo;

import com.link.core.basic.service.snowflake.IdWorkerSingleton;
import com.link.core.util.CoreYmlConstants;

public class IdGenerateOutput {

    public static void main(String[] args) {
//        IdWorkerSingleton idWorker = IdWorkerSingleton.getInstance(CoreYmlConstants.getDataCenterId(), CoreYmlConstants.getMachineId());
        for (int i = 0; i < 100; i++) {
            IdWorkerSingleton idWorker = IdWorkerSingleton.getInstance(0L, 1);
            Long id = idWorker.nextId();
            System.out.println(id);
        }
    }

}
